package mn.idax.exchange.otc.enums.response;

import lombok.Getter;

/**
 * Create by jack_huang on 2018/8/6
 */

@Getter
public enum CommentResponseEnum {

    //订单号为空
    ORDERID_ISNULL(310000,"orderNum is empty"),

    //没这个订单
    ORDERID_ISNOTEXIST(310001,"orderNum is not exist"),

    //参数错误
    PARAMETER_ERROR(310002,"parameter error"),

    //系统忙，稍后重试
    SERVER_BUSY(310003,"server is busy"),

    //已作过评论
    COMMENT_ISEXIST(310004,"order is already commented"),

    //没有这条评论
    COMMENT_ISNOTEXIST(310005,"comment is not exist"),

    COMMENT_CREATEFAIL(310006,"create comment fail"),

    COMMENT_UPDATEUSER(310007,"update user goodrate fail"),

    BECOMMENTED_USERIDISEMPTY(310008,"becommented user is empty"),

    COMMENT_TYPE_ERROR(310009,"comment type error"),

    ORDERSTATE_NOTSUPPORT(310010,"order have not finish, can not comment"),

    COMMETN_WITHNOAUTH(310011,"you are no auth to operate this order comment"),

    COMMETN_ALREADY_UPDATE(310012,"The same order can only be modified once"),

    DELETED_COMMENT_CANNOT_UPDATE(310013,"This comment has been deleted and cannot be modified"),

    COMMENT_CANNOT_UPDATE(310014,"This comment has been deleted and cannot be modified"),

    CAN_NOT_UPDATE(310015,"Unable to modify")


    ;
    private Integer respCode;

    private String respMsg;

    CommentResponseEnum(Integer respCode, String respMsg) {
        this.respCode = respCode;
        this.respMsg = respMsg;
    }
}
